package jsyf.oa.dao.system;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.system.AuditAndCopierEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by Dell on 2018/7/25.
 */
@Repository
public class AuditAndCopierDao extends BaseDao {

    public AuditAndCopierDao() {
        this.iBaseEntity = new AuditAndCopierEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, AuditAndCopierEntity.class);
    }
}
